/**
 * 
 */
package com.demo.config.intercepor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.demo.interceptor.MenuInterceptor;

/**
 * InterceptorConfig Description:
 * 
 * @author Zhuqingcheng
 * @date 2017年11月27日 下午2:12:06
 */
@Configuration
public class InterceptorConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new MenuInterceptor()).addPathPatterns("/**").excludePathPatterns("/login", "/dologin",
				"/403", "/error", "/logout");
		super.addInterceptors(registry);
	}

}
